package com.learn.design.factory;

/**
 * @author Administrator
 */
public class FactoryPattern {

    public static void main(String[] args) {
        //客户A要求生产安卓手机
        Factory factoryA = new FactoryA();
        factoryA.factoryMethod().product();
        //客户要求生产苹果手机
        Factory factoryB = new FactoryB();
        factoryB.factoryMethod().product();
    }

}
